package com.wlyuan.open.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 接口调用信息
 * </p>
 *
 * @author yuanjie
 * @since 2023-02-28
 */
@Data
@TableName("t_open_api_info")
@ApiModel(value = "OpenApiInfoDO对象", description = "接口调用信息")
public class OpenApiInfoDO implements Serializable {


    private static final long serialVersionUID = 9203587895503754490L;
    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("clientId")
    private Long clientId;

    @ApiModelProperty("接口id")
    private Long apiId;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("总调用次数")
    private Integer totalNum;

    @ApiModelProperty("使用调用次数")
    private Integer leaveNum;

    @ApiModelProperty("创建时间")
    private LocalDateTime createAt;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateAt;

    @ApiModelProperty("创建人")
    private Long createBy;

    @ApiModelProperty("更新人")
    private String updateBy;

    @ApiModelProperty("拒绝原因")
    private String reason;


}
